package com.shensi.adminCollect.enums.station;


public enum WxColorEnum {

    Color010("Color010","#63b359"),
    Color020("Color020","#2c9f67"),
    Color030("Color030","#509fc9"),
    Color040("Color040","#5885cf"),
    Color050("Color050","#9062c0"),
    Color060("Color060","#d09a45"),
    Color070("Color070","#e4b138"),
    Color080("Color080","#ee903c"),
    Color081("Color081","#f08500"),
    Color082("Color082","#a9d92d"),
    Color090("Color090","#dd6549"),
    Color100("Color100","#cc463d"),
    Color101("Color101","#cf3e36"),
    Color102("Color102","#5E6671"),

    ;
    private String value;

    private String text;

    WxColorEnum(String value, String text){
        this.value = value;
        this.text = text;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public static String getValueByText(String text) {
        for (WxColorEnum color : WxColorEnum.values()) {
            if (color.getText().equalsIgnoreCase(text)) {
                return color.getValue();
            }
        }
        return null;
    }
}
